@import "../variable";
@import "../mixins/mixins";
@import "../mixins/utils.scss";

@include b(bg) {
  background-color: #6bafe3;
  position: relative;
  height: 100%;
  background-image: url(https://medusa-small-file.oss-cn-hangzhou.aliyuncs.com/gruul/20190720/login_bg.png);
  @include e(title) {
    font-size: 36px;
    z-index: 1;
    position: absolute;
    top: 100px;
    left: 50%;
    width: 500px;
    margin-left: -250px;
    color: #2589ff;
    text-align: center;
  }

  @include e(wrap) {
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -190px;
    margin-top: -225px;
    box-sizing: border-box;
    width: 380px;
    min-height: 450px;
    padding: 30px 30px 40px;
    background: #fff;
    box-shadow: 0 20px 30px 0 rgba(63, 63, 65, .06);
    border-radius: 10px;
  }

  @include e(copyright) {
    font-size: 12px;
    height: 50px;
    z-index: 1;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 500px;
    margin-left: -250px;
    color: #9797a1;
    text-align: center;
  }
}

@include b(sign) {
  font-size: 14px;
  height: 100%;
  position: relative;

  @include e(loginForm) {

    @include m(loginCode) {
      display: flex;

      .el-button {
        margin-left: 10px;
      }
    }

    @include m(changeType) {
      margin: 25px 0;
      color: #9797a1;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    @include m(loginButton) {
      margin-top: 60px;
      width: 100%;
      padding: 18px;
      font-size: 18px;
    }
  }
}

@include b(header) {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  @include e(title) {
    color: #2589ff;
    font-size: 20px;
  }

  @include e(switch) {
    color: #9797a1;
  }
}
